package com.exp.day1;

public class AllPrgday1 {
	
	final static double pie = 3.142;
	static double radius;
	static double area;

	public static void main(String[] args) {
		
	// Print the simple statements
		
		 System.out.println("Hello Felight");
		 System.out.println("Welcome to felight");
		 System.out.println("All the best, Good Luck");
		
		 
	//Addition of two numbers...
		 
		 System.out.println("Additio of number");
			int a=10;
			int b=300;
			int sum = a + b;
			System.out.println("addtion of two number:  " + sum);

			
	//Compute Area of Circle....
			
		radius = 4;
		area = radius * radius * pie;
	     System.out.println("Area of Circle is : " + area);
			
	// Convert Fahrenheit to Celsius....
	     
	     double fahr = 100;
			double celsi = (5.0/9) * (fahr - 32);
			System.out.println("Fahranheit " + fahr +  "is " + celsi + "in celsius");
		
			
	// Find out the output.....
			
			System.out.println(1.0-0.5);
	        System.out.println(1.0-0.1-0.1-0.1-0.1-0.1);
		double aa = 1.0 - 0.1;
		System.out.println(" a= " + aa);
		double bb = aa-0.1;
		System.out.println(" b = " + bb);
		double cc = bb-0.1;
		System.out.println(" c = " + cc);
		double dd = cc-0.1;
		System.out.println(" d = " + dd);
		double ee = dd-0.1;
		System.out.println(" Value of e = " +ee );

		System.out.println(" Preincrement and Postincrement ");
		int i = 20;
		System.out.println(i++);
		System.out.println(++i);
		System.out.println(i++);
		
		float x = (float)10;
		int x1 = (int)x;
		System.out.println("Value of float: " + x + "Value of typecasted float to int : " + x1 );
		
		double d1 = 4.5;
		int d2 =(int)d1;
		System.out.println("Value of double: " + d1 + "Value of typecasted double to int : " + d2 );
		
		char letter = 'A';
		System.out.println("Character :" + letter);
		char numchar = '4';
		System.out.println("Numchar :" + numchar);
		
		char c1 = (char)65.25;
		System.out.println(c1);
		
		byte b1 = 'a';
		System.out.println("Byte :" + b1);
		int i1 = 'a';
		System.out.println("int a :" + i1);
		
		//Pg 27
		System.out.println("\n\n 1.0/3.0 is "+ 1.0/3.0);
		System.out.println("1.0f/3.0f is "+ 1.0f/3.0f);
		
		//pg 30	
		byte ii = 100;
		long k = ii * 3 + 4;
		double d3 = ii * 3.1 + k / 2;
		System.out.println("\n\n" + ii);
		System.out.println(k);	
		System.out.println(d3);
		
		//pg 34

		String msg = "Welcome" + "to" + "Java";
		
		String s = "Chapter" + 2;

		String s1 = "Supplement" + 'B';
		
		System.out.println(msg);
		System.out.println(s);
		System.out.println(s1);
			
			
		

	}

}
